package cn.com.taurus.impl;

import cn.com.taurus.entity.FundManager;
import cn.com.taurus.mapper.FundManagerMapper;
import cn.com.taurus.service.FundManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zjw
 * @createTime 2021年6月28日
 * @remark 基金经理层
 * @version 1.0
 */
@Service
public class FundManagerImpl implements FundManagerService {
    @Autowired
    private FundManagerMapper fundMapper;

    @Override
    public int addFundManager(List<FundManager> fundManagerData) {
        return fundMapper.addFundManager(fundManagerData);
    }

    @Override
    public List<FundManager> selectAllFundManager() {
        return fundMapper.selectAllFundManager();
    }

    @Override
    public FundManager selectFundManagerById(String fmId) {
        return fundMapper.selectFundManagerById(fmId);
    }

    @Override
    public int updateFundManagerById(FundManager fundManager){
        return fundMapper.updateFundManagerById(fundManager);
    }

    @Override
    public int insertFundManager(FundManager fundManager){
        return fundMapper.insertFundManager(fundManager);
    }

    @Override
    public List<FundManager> conditionSelect(String fmId, String fmName, String firstOffice, String fmMessage){
        return fundMapper.conditionSelect(fmId,fmName,firstOffice,fmMessage);
    }
}
